package com.trsj.lnsj.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Package:com.trsj.lnsj.entity
 * @Auther: Longky
 * @Date: 2018/12/31
 * @Description:
 */
@Entity
@Table(name = "tab_comment")
public class CommentDTO implements   Serializable {
    @Id
    @Column(name = "activityid")
    private Long activityId;
    @Column(name = "userid")
    private Long userId;
    @Column(name = "comment")
    private String comment;
    @Column(name = "createtime")
    private Date createTime;

    @Override
    public String toString() {
        return "CommentDTO{" +
                "activityId=" + activityId +
                ", userId=" + userId +
                ", comment='" + comment + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
